<?php

namespace App\Enums\OpenShop\InvestmentPromotion;

use App\Models\Cruise\CruiseTemplateModel;

class SiteLocationEnum
{

    /**
     * 门店信息来源
     */
    public const MESSAGE_FROM_TYPE_1    = 1; // 加盟商自带
    public const MESSAGE_FROM_TYPE_2    = 2; // 夸父推荐
    public const MESSAGE_FROM_TYPE_3    = 3; // 加盟商自带址-远程
    //public const MESSAGE_FROM_TYPE_4    = 4; // 加迁址
    public const MESSAGE_FROM_TYPE_5    = 5; // 门店转让
    public const MESSAGE_FROM_TYPE_6    = 6; // 迁址-推荐址
    public const MESSAGE_FROM_TYPE_7    = 7; // 迁址-自带址
    const        MESSAGE_FROM_TYPE_TEXT = [
        self::MESSAGE_FROM_TYPE_2 => '夸父推荐址',
        self::MESSAGE_FROM_TYPE_1 => '加盟商自带址-现场',
        self::MESSAGE_FROM_TYPE_3 => '加盟商自带址-远程',
        //self::MESSAGE_FROM_TYPE_4 => '迁址',
        self::MESSAGE_FROM_TYPE_6 => '迁址-推荐址',
        self::MESSAGE_FROM_TYPE_7 => '迁址-自带址',
        self::MESSAGE_FROM_TYPE_5 => '门店转让',
    ];

    /**
     * 铺位推荐方式
     */
    const RECOMMEND_TYPE_WITH_DEVELOPMENT = 1; // 开发推荐
    const RECOMMEND_TYPE_WITH_THIRD_PARTY = 2; // 三方推荐
    const RECOMMEND_TYPE_WITH_SELF        = 3; // 客户自带
    const RECOMMEND_TYPES = [
        self::RECOMMEND_TYPE_WITH_DEVELOPMENT => '开发推荐',
        self::RECOMMEND_TYPE_WITH_THIRD_PARTY => '三方推荐',
        self::RECOMMEND_TYPE_WITH_SELF        => '客户自带',
    ];

    //加盟商自带选址枚举
    const MESSAGE_MYSELF_HAVE_MAPPING = [
        self::MESSAGE_FROM_TYPE_1 => '是',
        self::MESSAGE_FROM_TYPE_2 => '否',
        self::MESSAGE_FROM_TYPE_3 => '是',
        //self::MESSAGE_FROM_TYPE_4 => '否',
        self::MESSAGE_FROM_TYPE_5 => '否',
    ];

    /**
     * 当前业态 0 其它 1：空置中2餐饮店3奶茶店4服装店5便利店6理发店
     */
    public const CURRENT_FORMAT_TYPE_7    = 7;
    public const CURRENT_FORMAT_TYPE_1    = 1;
    public const CURRENT_FORMAT_TYPE_2    = 2;
    public const CURRENT_FORMAT_TYPE_3    = 3;
    public const CURRENT_FORMAT_TYPE_4    = 4;
    public const CURRENT_FORMAT_TYPE_5    = 5;
    public const CURRENT_FORMAT_TYPE_6    = 6;
    const        CURRENT_FORMAT_TYPE_TEXT = [
        self::CURRENT_FORMAT_TYPE_7 => '其他',
        self::CURRENT_FORMAT_TYPE_1 => '空置中',
        self::CURRENT_FORMAT_TYPE_2 => '餐饮店',
        self::CURRENT_FORMAT_TYPE_3 => '奶茶店',
        self::CURRENT_FORMAT_TYPE_4 => '服装店',
        self::CURRENT_FORMAT_TYPE_5 => '便利店',
        self::CURRENT_FORMAT_TYPE_6 => '理发店',
    ];

    public const CITY_TYPE_LEVEL_1    = 1; // 城市等级
    public const CITY_TYPE_LEVEL_2    = 2; // 城市等级
    public const CITY_TYPE_LEVEL_3    = 3; // 城市等级
    public const CITY_TYPE_LEVEL_4    = 4; // 城市等级
    public const CITY_TYPE_LEVEL_5    = 5; // 城市等级
    public const CITY_TYPE_LEVEL_9    = 9; // 城市等级
    public const CITY_TYPE_LEVEL_NEW1 = 10; // 城市等级

    public const CITY_TYPE_LEVEL_TEXT = [
        self::CITY_TYPE_LEVEL_1    => '一线',
        self::CITY_TYPE_LEVEL_2    => '二线',
        self::CITY_TYPE_LEVEL_3    => '三线',
        self::CITY_TYPE_LEVEL_4    => '四线',
        self::CITY_TYPE_LEVEL_5    => '五线',
        self::CITY_TYPE_LEVEL_9    => '非五线',
        self::CITY_TYPE_LEVEL_NEW1 => '新一线',
    ];

    // 对应选址的系数
    const CITY_TYPE_LEVEL_COEFFICIENT = [
        self::CITY_TYPE_LEVEL_1    => 1,
        self::CITY_TYPE_LEVEL_2    => 3,
        self::CITY_TYPE_LEVEL_3    => 4,
        self::CITY_TYPE_LEVEL_4    => 5,
        self::CITY_TYPE_LEVEL_5    => 6,
        self::CITY_TYPE_LEVEL_9    => 6,
        self::CITY_TYPE_LEVEL_NEW1 => 2,
    ];

    public const CITY_TYPE_LEVEL_RENT_TIPS_TEXT = [
        self::CITY_TYPE_LEVEL_1    => '15000元以内',
        self::CITY_TYPE_LEVEL_2    => '10000元以内',
        self::CITY_TYPE_LEVEL_3    => '10000元以内',
        self::CITY_TYPE_LEVEL_4    => '5000元左右',
        self::CITY_TYPE_LEVEL_5    => '5000元左右',
        self::CITY_TYPE_LEVEL_9    => '5000元左右',
        self::CITY_TYPE_LEVEL_NEW1 => '15000元以内',
    ];

    public const CITY_TYPE_LEVEL_AREA_TIPS_TEXT = [
        self::CITY_TYPE_LEVEL_1    => '10-30㎡',
        self::CITY_TYPE_LEVEL_2    => '30-40㎡',
        self::CITY_TYPE_LEVEL_3    => '30-40㎡',
        self::CITY_TYPE_LEVEL_4    => '50-80㎡',
        self::CITY_TYPE_LEVEL_5    => '50-80㎡',
        self::CITY_TYPE_LEVEL_9    => '50-80㎡',
        self::CITY_TYPE_LEVEL_NEW1 => '10-30㎡',
    ];

    public const CITY_TYPE_LEVEL_DECORATION_COST = [
        self::CITY_TYPE_LEVEL_1    => +17048.49,
        self::CITY_TYPE_LEVEL_2    => +6542.14,
        self::CITY_TYPE_LEVEL_3    => +1671.84,
        self::CITY_TYPE_LEVEL_4    => -10318.83,
        self::CITY_TYPE_LEVEL_5    => -19302.85,
        self::CITY_TYPE_LEVEL_9    => -19302.85,
        self::CITY_TYPE_LEVEL_NEW1 => +10901.37,
    ];

    /**
     * 当前经营状态
     */
    public const OPERATING_STATUS_TYPE_1    = 1; // 空置中
    public const OPERATING_STATUS_TYPE_2    = 2; // 经营中
    public const OPERATING_STATUS_TYPE_TEXT = [
        self::OPERATING_STATUS_TYPE_1 => '经营中',
        self::OPERATING_STATUS_TYPE_2 => '空置中',
    ];

    /**
     * 租赁状态
     */
    public const LEASE_STATUS_1    = 1;
    public const LEASE_STATUS_2    = 2;
    public const LEASE_STATUS_TEXT = [
        self::LEASE_STATUS_1 => '有租赁',
        self::LEASE_STATUS_2 => '无租赁',
    ];

    /**
     * 客流驱动类型
     */
    public const DRIVE_TYPE_11   = 11; // 办公
    public const DRIVE_TYPE_1    = 1; // 通勤
    public const DRIVE_TYPE_2    = 2; // 家庭
    public const DRIVE_TYPE_3    = 3; // 旅游
    public const DRIVE_TYPE_4    = 4; // 学校
    public const DRIVE_TYPE_5    = 5; // 交通
    public const DRIVE_TYPE_6    = 6; // 娱乐-电影院
    public const DRIVE_TYPE_7    = 7; // 娱乐-网吧
    public const DRIVE_TYPE_8    = 8; // 娱乐-健身
    public const DRIVE_TYPE_9    = 9; // 娱乐-KTV
    public const DRIVE_TYPE_10   = 10; // 娱乐-电玩城
    public const DRIVE_TYPE_12   = 12; // 社区
    public const DRIVE_TYPE_13   = 13; // 商业
    public const DRIVE_TYPE_TEXT = [
        self::DRIVE_TYPE_11 => '办公',
        self::DRIVE_TYPE_1  => '通勤',
        self::DRIVE_TYPE_2  => '家庭',
        self::DRIVE_TYPE_3  => '旅游',
        self::DRIVE_TYPE_4  => '学校',
        self::DRIVE_TYPE_5  => '交通',
        self::DRIVE_TYPE_12 => '社区',
        self::DRIVE_TYPE_13 => '商业',
        self::DRIVE_TYPE_6  => '娱乐-电影院',
        self::DRIVE_TYPE_7  => '娱乐-网吧',
        self::DRIVE_TYPE_8  => '娱乐-健身',
        self::DRIVE_TYPE_9  => '娱乐-KTV',
        self::DRIVE_TYPE_10 => '娱乐-电玩城',
    ];

    /**
     * 店址类型
     */
    public const SITE_TYPE_18   = 1;
    public const SITE_TYPE_1    = 2;
    public const SITE_TYPE_2    = 3;
    public const SITE_TYPE_3    = 4;
    public const SITE_TYPE_4    = 5;
    public const SITE_TYPE_5    = 6;
    public const SITE_TYPE_6    = 7;
    public const SITE_TYPE_7    = 8;
    public const SITE_TYPE_8    = 9;
    public const SITE_TYPE_9    = 10;
    public const SITE_TYPE_10   = 11;
    public const SITE_TYPE_11   = 12;
    public const SITE_TYPE_12   = 13;
    public const SITE_TYPE_13   = 14;
    public const SITE_TYPE_14   = 15;
    public const SITE_TYPE_15   = 16;
    public const SITE_TYPE_16   = 17;
    public const SITE_TYPE_17   = 18;
    public const SITE_TYPE_TEXT = [
        self::SITE_TYPE_18 => '商场-综合型',  //商场
        self::SITE_TYPE_1  => '商场-百货型',  //商场
        self::SITE_TYPE_2  => '商场-美食型',  //商场
        self::SITE_TYPE_3  => '商场-食街市集型',  //商场
        self::SITE_TYPE_4  => '商场金街',  //商场
        self::SITE_TYPE_5  => '街铺-学校',
        self::SITE_TYPE_6  => '街铺-步行街',
        self::SITE_TYPE_7  => '街铺-商业街',
        self::SITE_TYPE_8  => '街铺-社区',
        self::SITE_TYPE_9  => '交通枢纽-机场',
        self::SITE_TYPE_10 => '交通枢纽-火车站',
        self::SITE_TYPE_11 => '交通枢纽-高速服务区',
        self::SITE_TYPE_12 => '交通枢纽-地铁',
        self::SITE_TYPE_13 => '交通枢纽-公交',
        self::SITE_TYPE_14 => '办公',
        self::SITE_TYPE_15 => '商超',  //商场
        self::SITE_TYPE_16 => '奥莱',
        self::SITE_TYPE_17 => '景区',
    ];

    //门店模型类型
    const SHOP_MODEL_TYPE_MALL_INSIDE        = 1;
    const SHOP_MODEL_TYPE_MALL_STREET        = 2;
    const SHOP_MODEL_TYPE_COMMUNITY_STREET   = 3;
    const SHOP_MODEL_TYPE_COMMUNITY_SCHOOL   = 4;
    const SHOP_MODEL_TYPE_SCHOOL_CANTEEN     = 5;
    const SHOP_MODEL_TYPE_SCHOOL_STREET      = 6;
    const SHOP_MODEL_TYPE_SCENIC_SPOT_INSIDE = 7;
    const SHOP_MODEL_TYPE_MALL               = 8;

    const SHOP_MODEL_TYPE_MAPPING = [
        self::SHOP_MODEL_TYPE_MALL_INSIDE        => '商场内部店',
        self::SHOP_MODEL_TYPE_MALL_STREET        => '商场金街店',
        self::SHOP_MODEL_TYPE_COMMUNITY_STREET   => '社区街边店',
        self::SHOP_MODEL_TYPE_COMMUNITY_SCHOOL   => '社区学校店',
        self::SHOP_MODEL_TYPE_SCHOOL_CANTEEN     => '校内食堂店',
        self::SHOP_MODEL_TYPE_SCHOOL_STREET      => '学校商街店',
        self::SHOP_MODEL_TYPE_SCENIC_SPOT_INSIDE => '景区内部店',
        self::SHOP_MODEL_TYPE_MALL               => '商场店',
    ];

    const SHOP_SEARCH_MODEL_TYPE_MAPPING = [
        self::SHOP_MODEL_TYPE_MALL               => '商场',//商场店、商场内部店、商场街边店
        self::SHOP_MODEL_TYPE_COMMUNITY_STREET   => '街边',//社区街边店、社区学校店
        self::SHOP_MODEL_TYPE_SCHOOL_CANTEEN     => '学校',//校内食堂店、学校商街店
        self::SHOP_MODEL_TYPE_SCENIC_SPOT_INSIDE => '景区',//景区内部店
    ];

    const SHOP_SEARCH_MODEL_VALUE_MAPPING = [
        self::SHOP_MODEL_TYPE_MALL               => [self::SHOP_MODEL_TYPE_MALL, self::SHOP_MODEL_TYPE_MALL_INSIDE, self::SHOP_MODEL_TYPE_MALL_STREET],//商场店、商场内部店、商场街边店
        self::SHOP_MODEL_TYPE_COMMUNITY_STREET   => [self::SHOP_MODEL_TYPE_COMMUNITY_STREET, self::SHOP_MODEL_TYPE_COMMUNITY_SCHOOL],                  //社区街边店、社区学校店
        self::SHOP_MODEL_TYPE_SCHOOL_CANTEEN     => [self::SHOP_MODEL_TYPE_SCHOOL_CANTEEN, self::SHOP_MODEL_TYPE_SCHOOL_STREET],                       //校内食堂店、学校商街店
        self::SHOP_MODEL_TYPE_SCENIC_SPOT_INSIDE => [self::SHOP_MODEL_TYPE_SCENIC_SPOT_INSIDE],                                                        //景区内部店
    ];


    const OPENING_STATUS_OFF = 1;
    const OPENING_STATUS_ON  = 2;

    const OPENING_STATUS_MAP = [
        self::OPENING_STATUS_OFF => "未开业",
        self::OPENING_STATUS_ON  => "已开业",
    ];

    // shop_model_type映射 sysTemplate系统模板
    const SHOP_MODEL_TYPE_TO_SYS_TEMPLATE = [
        self::SHOP_MODEL_TYPE_MALL_INSIDE        => CruiseTemplateModel::SYS_TEMPLATE_SITE_1,
        self::SHOP_MODEL_TYPE_MALL_STREET        => CruiseTemplateModel::SYS_TEMPLATE_SITE_2,
        self::SHOP_MODEL_TYPE_COMMUNITY_STREET   => CruiseTemplateModel::SYS_TEMPLATE_SITE_3,
        self::SHOP_MODEL_TYPE_COMMUNITY_SCHOOL   => CruiseTemplateModel::SYS_TEMPLATE_SITE_4,
        self::SHOP_MODEL_TYPE_SCHOOL_CANTEEN     => CruiseTemplateModel::SYS_TEMPLATE_SITE_5,
        self::SHOP_MODEL_TYPE_SCHOOL_STREET      => CruiseTemplateModel::SYS_TEMPLATE_SITE_6,
        self::SHOP_MODEL_TYPE_SCENIC_SPOT_INSIDE => CruiseTemplateModel::SYS_TEMPLATE_SITE_7,
        self::SHOP_MODEL_TYPE_MALL               => CruiseTemplateModel::SYS_TEMPLATE_MALL_INFO,
    ];

    /**
     * 人流动向
     */
    public const FLOW_LINE_TYPE_1    = 1;
    public const FLOW_LINE_TYPE_2    = 2;
    public const FLOW_LINE_TYPE_TEXT = [
        self::FLOW_LINE_TYPE_1 => '从左往右',
        self::FLOW_LINE_TYPE_2 => '从右往左',
    ];

    /**
     * 朝向
     */
    public const ORIENTATION_TYPE_4    = 4;
    public const ORIENTATION_TYPE_1    = 1;
    public const ORIENTATION_TYPE_2    = 2;
    public const ORIENTATION_TYPE_3    = 3;
    public const ORIENTATION_TYPE_TEXT = [
        self::ORIENTATION_TYPE_4 => "东",
        self::ORIENTATION_TYPE_1 => "南",
        self::ORIENTATION_TYPE_2 => "西",
        self::ORIENTATION_TYPE_3 => "北",
    ];

    /**
     * 阴阳街
     */
    public const YIN_YANG_JIE_TYPE_3    = 3;
    public const YIN_YANG_JIE_TYPE_1    = 1;
    public const YIN_YANG_JIE_TYPE_2    = 2;
    public const YIN_YANG_JIE_TYPE_TEXT = [
        self::YIN_YANG_JIE_TYPE_3 => "阴街",
        self::YIN_YANG_JIE_TYPE_1 => "阳街",
        self::YIN_YANG_JIE_TYPE_2 => "无",
    ];

    /**
     * 可视性标签
     */
    public const VISUAL_LABEL_TYPE_4 = 4;
    public const VISUAL_LABEL_TYPE_1 = 1;
    public const VISUAL_LABEL_TYPE_2 = 2;
    public const VISUAL_LABEL_TYPE_3 = 3;
    public const VISUAL_LABEL_TYPE_5 = 5;
    public const VISUAL_LABEL_TEXT   = [
        self::VISUAL_LABEL_TYPE_5 => '中岛360°',
        self::VISUAL_LABEL_TYPE_4 => '凸角270°',
        self::VISUAL_LABEL_TYPE_1 => '边缘180°',
        self::VISUAL_LABEL_TYPE_2 => '凹角90°',
        self::VISUAL_LABEL_TYPE_3 => '内部0°',
    ];

    /**
     * 商业街长度
     */
    public const STREET_LENGTH_TYPE_5 = 5;
    public const STREET_LENGTH_TYPE_1 = 1;
    public const STREET_LENGTH_TYPE_2 = 2;
    public const STREET_LENGTH_TYPE_3 = 3;
    public const STREET_LENGTH_TYPE_4 = 4;
    public const STREET_LENGTH_TEXT   = [
        self::STREET_LENGTH_TYPE_5 => '>500米',
        self::STREET_LENGTH_TYPE_1 => '300-500米',
        self::STREET_LENGTH_TYPE_2 => '200-300米',
        self::STREET_LENGTH_TYPE_3 => '100-200米',
        self::STREET_LENGTH_TYPE_4 => '<100米',
    ];

    /**
     * 装修店型
     */
    public const DECORATION_SHOP_TYPE_4 = 4;
    public const DECORATION_SHOP_TYPE_1 = 1;
    public const DECORATION_SHOP_TYPE_2 = 2;
    public const DECORATION_SHOP_TYPE_3 = 3;
    public const DECORATION_SHOP_TEXT   = [
        self::DECORATION_SHOP_TYPE_4 => '中岛',
        self::DECORATION_SHOP_TYPE_1 => 'L型',
        self::DECORATION_SHOP_TYPE_2 => '边店',
        self::DECORATION_SHOP_TYPE_3 => 'U型',
    ];

    /**
     * 是否电量增容
     */
    public const IS_CAPACITY_INCREASE_2    = 2; // 否
    public const IS_CAPACITY_INCREASE_1    = 1; // 是
    public const IS_CAPACITY_INCREASE_TEXT = [
        self::IS_CAPACITY_INCREASE_1 => '支持',
        self::IS_CAPACITY_INCREASE_2 => '不支持',
    ];

    /**
     * 是否排风改造
     */
    public const IS_EXHAUST_RECONSTRUCTION_2    = 2;
    public const IS_EXHAUST_RECONSTRUCTION_1    = 1;
    public const IS_EXHAUST_RECONSTRUCTION_TEXT = [
        self::IS_EXHAUST_RECONSTRUCTION_1 => '支持',
        self::IS_EXHAUST_RECONSTRUCTION_2 => '不支持',
    ];

    /**
     * 是否水管改造
     */
    public const IS_REFORM_WATER_2    = 2;// 否
    public const IS_REFORM_WATER_1    = 1;// 是
    public const IS_REFORM_WATER_TEXT = [
        self::IS_REFORM_WATER_1 => '支持',
        self::IS_REFORM_WATER_2 => '不支持',
    ];

    /**
     * 空调
     */
    public const AIR_CONDITIONER_TYPE_2    = 2;
    public const AIR_CONDITIONER_TYPE_1    = 1;
    public const AIR_CONDITIONER_TYPE_TEXT = [
        self::AIR_CONDITIONER_TYPE_2 => '甲方空调',
        self::AIR_CONDITIONER_TYPE_1 => '自设空调',
    ];

    /**
     * 消防安装
     */
    public const IS_FIRE_CONTROL_2    = 2;
    public const IS_FIRE_CONTROL_1    = 1;
    public const IS_FIRE_CONTROL_TEXT = [
        self::IS_FIRE_CONTROL_1 => '是',
        self::IS_FIRE_CONTROL_2 => '否',
    ];

    /**
     * 计租方式 记租类型1固租2只提点3固租+提点4两者取最高
     */
    public const RENT_TYPE_1    = 1;
    public const RENT_TYPE_2    = 2;
    public const RENT_TYPE_3    = 3;
    public const RENT_TYPE_4    = 4;
    public const RENT_TYPE_TEXT = [
        self::RENT_TYPE_1 => '只固租',
        self::RENT_TYPE_2 => '只提点',
        self::RENT_TYPE_3 => '固租+提点',
        self::RENT_TYPE_4 => '两者取其高',
    ];

    /**
     * 租金支付周期
     */
    public const RENT_PAYMENT_CYCLE_1 = 1; // 月付
    public const RENT_PAYMENT_CYCLE_2 = 2; // 季付
    public const RENT_PAYMENT_CYCLE_3 = 3; // 半年付
    public const RENT_PAYMENT_CYCLE_4 = 4; // 年付
    public const RENT_PAYMENT_TEXT    = [
        self::RENT_PAYMENT_CYCLE_1 => '月付',
        self::RENT_PAYMENT_CYCLE_2 => '季付',
        self::RENT_PAYMENT_CYCLE_3 => '半年付',
        self::RENT_PAYMENT_CYCLE_4 => '年付',
    ];

    /**
     * 租金支付周期 - 对应月数
     */
    public const RENT_PAYMENT_MONTH = [
        self::RENT_PAYMENT_CYCLE_1 => 1,
        self::RENT_PAYMENT_CYCLE_2 => 3,
        self::RENT_PAYMENT_CYCLE_3 => 6,
        self::RENT_PAYMENT_CYCLE_4 => 12,
    ];

    /**
     * 收银机类型 1夸父收银 2 商场收银
     */
    public const CASE_REGISTER_TYPE_1 = 1;
    public const CASE_REGISTER_TYPE_2 = 2;
    public const CASE_REGISTER_TYPE_3 = 3;
    public const CASE_REGISTER_TYPE_4 = 4;

    public const CASE_REGISTER_TEXT = [
        self::CASE_REGISTER_TYPE_1 => '夸父收银',
        self::CASE_REGISTER_TYPE_2 => '商场收银',
        self::CASE_REGISTER_TYPE_3 => '美团收银',
//        self::CASE_REGISTER_TYPE_4 => '哗啦啦收银',
    ];

    /**
     * 经营策略
     */
    public const BUSINESS_STRATEGY_1    = 1; // 1 加盟商亲管
    public const BUSINESS_STRATEGY_2    = 2; // 2 合伙经营
    public const BUSINESS_STRATEGY_3    = 3; // 3 店长代管
    public const BUSINESS_STRATEGY_TEXT = [
        self::BUSINESS_STRATEGY_1 => '加盟商亲管',
        self::BUSINESS_STRATEGY_2 => '合伙经营',
        self::BUSINESS_STRATEGY_3 => '店长代管',
    ];

    /**
     * 经营策略
     */
    public const RESTRICTED_SALES_1    = 1; // 1 臭豆腐
    public const RESTRICTED_SALES_2    = 2; // 2 炸串
    public const RESTRICTED_SALES_3    = 3; // 3 小份炸
    public const RESTRICTED_SALES_4    = 4; // 4 布袋馍
    public const RESTRICTED_SALES_5    = 5; // 5 无
    public const RESTRICTED_SALES_TEXT = [
        self::RESTRICTED_SALES_5 => '无',
        self::RESTRICTED_SALES_1 => '臭豆腐',
        self::RESTRICTED_SALES_2 => '炸串',
        self::RESTRICTED_SALES_3 => '小份炸',
        self::RESTRICTED_SALES_4 => '布袋馍',
    ];

    /**
     * 占比
     */
    public const CUSTOMER_ANALYSIS_PROPORTION_1 = 1;
    public const CUSTOMER_ANALYSIS_PROPORTION_2 = 2;
    public const CUSTOMER_ANALYSIS_PROPORTION_3 = 3;
    public const CUSTOMER_ANALYSIS_PROPORTION_4 = 4;
    public const CUSTOMER_ANALYSIS_PROPORTION_5 = 5;

    public const  CUSTOMER_ANALYSIS_TEXT = [
        self::CUSTOMER_ANALYSIS_PROPORTION_1 => '极少<20%',
        self::CUSTOMER_ANALYSIS_PROPORTION_2 => '较少20%-40%',
        self::CUSTOMER_ANALYSIS_PROPORTION_3 => '一般40%-60%',
        self::CUSTOMER_ANALYSIS_PROPORTION_4 => '较多60%-80%',
        self::CUSTOMER_ANALYSIS_PROPORTION_5 => '极多>80%',
    ];

    public const DATE_TYPE_1 = 1;
    public const DATE_TYPE_2 = 2;

    public const DATE_TYPE_TEXT = [
        self::DATE_TYPE_1 => '工作日',
        self::DATE_TYPE_2 => '节假日',
    ];


    public const STATUS_0 = 0; // 未处理
    public const STATUS_1 = 1; // 已通过
    public const STATUS_2 = 2; // 已驳回

    public const POSITION_DEVELOP_MANAGER = 1;
    public const POSITION_PROVINCE_CHIEF  = 2;
    public const POSITION_HEAD            = 0;

    public const CN_POSITION_LIST = [
        self::POSITION_DEVELOP_MANAGER => '开发经理',
        self::POSITION_PROVINCE_CHIEF  => '省区总',
        self::POSITION_HEAD            => '总部',
    ];


    const SITE_LOCATION_CHARGE_ON  = 1;  //是选址负责人
    const SITE_LOCATION_CHARGE_OFF = 0;  //否


    //客单价预估
    const  CUSTOMER_UNIT_PRICE_ESTIMATION_1   = 25;
    const  CUSTOMER_UNIT_PRICE_ESTIMATION_2   = 30;
    const  CUSTOMER_UNIT_PRICE_ESTIMATION_MAP = [
        self::CUSTOMER_UNIT_PRICE_ESTIMATION_1 => "25元/单(点单)",
        self::CUSTOMER_UNIT_PRICE_ESTIMATION_2 => "30元/单(自选)"
    ];

    //是否可办理营业执照
    const HANDLE_BUSINESS_LICENSE_NO  = 0;
    const HANDLE_BUSINESS_LICENSE_YES = 1;
    const HANDLE_BUSINESS_LICENSE_MAP = [
        self::HANDLE_BUSINESS_LICENSE_NO  => "不可办理",
        self::HANDLE_BUSINESS_LICENSE_YES => "可以办理"
    ];

    //历史营业执照照片有无
    const HISTORY_BUSINESS_LICENSE_NO  = 0;
    const HISTORY_BUSINESS_LICENSE_YES = 1;
    const HISTORY_BUSINESS_LICENSE_MAP = [
        self::HISTORY_BUSINESS_LICENSE_NO  => "无",
        self::HISTORY_BUSINESS_LICENSE_YES => "有"
    ];

    //是否可办理食品安全许可证
    const HANDLE_FOOD_LICENSE_NO  = 0;
    const HANDLE_FOOD_LICENSE_YES = 1;
    const HANDLE_FOOD_LICENSE_MAP = [
        self::HANDLE_FOOD_LICENSE_NO  => "不可办理",
        self::HANDLE_FOOD_LICENSE_YES => "可以办理"
    ];

    //是否可办理食品安全许可证
    const WALL_TAIL_USED_OLD_OK  = 1;
    const WALL_TAIL_USED_OLD_NO  = 2;
    const WALL_TAIL_USED_OLD_MAP = [
        self::WALL_TAIL_USED_OLD_NO => "否",
        self::WALL_TAIL_USED_OLD_OK => "是"
    ];

    //历史食品安全许可证照片有无
    const HISTORY_FOOD_LICENSE_NO  = 0;
    const HISTORY_FOOD_LICENSE_YES = 1;
    const HISTORY_FOOD_LICENSE_MAP = [
        self::HISTORY_FOOD_LICENSE_NO  => "无",
        self::HISTORY_FOOD_LICENSE_YES => "有"
    ];

    // rms门店属性 分类配置
    const CATEGORY_ID_1  = 1;
    const CATEGORY_ID_2  = 2;
    const CATEGORY_ID_3  = 3;
    const CATEGORY_ID_4  = 4;
    const CATEGORY_ID_5  = 5;
    const CATEGORY_ID_6  = 6;
    const CATEGORY_ID_7  = 7;
    const CATEGORY_ID_8  = 8;
    const CATEGORY_ID_9  = 9;
    const CATEGORY_ID_10 = 10;
    const CATEGORY_ID_11 = 11;
    const CATEGORY_ID_12 = 12;
    const CATEGORY_ID_13 = 13;
    const CATEGORY_ID_14 = 14;
    const CATEGORY_ID_15 = 15;
    const CATEGORY_ID_16 = 16;
    const CATEGORY_ID_17 = 17;

    const ID_TEXT_MAPPING = [
        self::CATEGORY_ID_1  => '门店性质',// 单选 加盟店 直营店
        self::CATEGORY_ID_2  => '店型',// 单选 旗舰店 精选店 标准店 团餐店 直营店-培训直营 直营店-广告直营 直营店-短期直营 直营店-测试直营
        self::CATEGORY_ID_3  => '选址场景',// 多选 商场 社区 学校 园区 景区 服务区 大厂食堂
        self::CATEGORY_ID_4  => '售卖品类',// 多选 炸串 炸鸡 主食 包装饮品 景区精选
        self::CATEGORY_ID_5  => '选址场景分级',// 单选 S A B C D
        self::CATEGORY_ID_6  => '点餐动线',// 单选 自选 嘴点
        self::CATEGORY_ID_7  => '工程条件-展面',// 范围内输入值 ＜2.5米，2.5-3米（不含3米），3-5（不含5米），5米及以上
        self::CATEGORY_ID_8  => '工程条件-面积',// 范围内输入值 ＜15平米，15-30平米，＞30平米
        self::CATEGORY_ID_9  => '工程条件-进深',// 范围内输入值 小于3米，3-5米（不含5），5米及以上
        self::CATEGORY_ID_10 => '工程条件-电量',// 范围内输入值 小于30KW，30-35KW（不含35），≥35KW
        self::CATEGORY_ID_11 => '菜单等级',// 单选 A级(一线+西藏) B级(新一/二/三线城市) C级(四/五线) S级(精选产品特殊定价) 其他
        self::CATEGORY_ID_12 => '门店状态',// 单选 选址中 筹备中 正常营业 暂停营业 闭店
        self::CATEGORY_ID_13 => '迁址状态',// 单选 是 or 否
        self::CATEGORY_ID_14 => '收银设备',// 单选 夸父收银 美团收银 其他收银
        self::CATEGORY_ID_15 => '自定义标签',// 多选 自定义标签
        self::CATEGORY_ID_16 => '城市分级',// 单选 一线 二线 三线 四线 五线
        self::CATEGORY_ID_17 => '城市',// 城市
    ];

    /**
     * 将const转换成options
     * @param array $const
     * @return array
     */
    public static function getOptionsByConst(array $const): array
    {
        $res = [];
        foreach ($const as $value => $text) {
            $res[] = [
                'text'  => $text,
                'value' => (string)$value,
            ];
        }

        return $res;
    }

    const  COULD_ZERO_FIELDS = [
        "shopAssistantMonthSalary",
        "shopManagerMonthSalary",
        "handleBusinessLicense",
        "historyBusinessLicense",
        "handleFoodLicense",
        "historyFoodLicense",
        "deposit"
    ];

    const COST_PERFORMANCE_HIGH   = 1;
    const COST_PERFORMANCE_MEDIUM = 2;
    const COST_PERFORMANCE_LOW    = 3;

    const COST_PERFORMANCES = [
        self::COST_PERFORMANCE_HIGH   => '性价比高',
        self::COST_PERFORMANCE_MEDIUM => '性价比中',
        self::COST_PERFORMANCE_LOW    => '性价比低',
    ];

    const HOUSE_EVALUATE_STATUS_DEFAULT = 0;
    const HOUSE_EVALUATE_STATUS_WAIT    = 1;
    const HOUSE_EVALUATE_STATUS_AUDIT   = 2;
    const HOUSE_EVALUATE_STATUS_FINISH  = 4;

    const HOUSE_EVALUATE_STATUS_TEXT = [
        self::HOUSE_EVALUATE_STATUS_DEFAULT => '',
        self::HOUSE_EVALUATE_STATUS_WAIT    => '待提交',
        self::HOUSE_EVALUATE_STATUS_AUDIT   => '审核中',
        self::HOUSE_EVALUATE_STATUS_FINISH  => '已完成',
    ];

    const SELECTION_CHANGE_TYPE_1 = 1;
    const SELECTION_CHANGE_TYPE_2 = 2;
    const SELECTION_CHANGE_TYPE_3 = 3;
    const SELECTION_CHANGE_TYPE_LOCATION = 4;

    const SELECTION_CHANGE_TYPE_TEXT = [
        self::SELECTION_CHANGE_TYPE_1 => '仅数据修改',
        self::SELECTION_CHANGE_TYPE_2 => '重新选址',
        self::SELECTION_CHANGE_TYPE_3 => '迁址',
        self::SELECTION_CHANGE_TYPE_LOCATION=> '选址范围调整',
    ];

    /**
     * 商场字段
     */

    const MALL_STATUS_0    = 0;
    const MALL_STATUS_1    = 1;
    const MALL_STATUS_TEXT = [
        self::MALL_STATUS_0 => '未开业',
        self::MALL_STATUS_1 => '已开业',
    ];

    /**
     * 外卖双平台
     */
    const DOUBLE_WAIMAI_MEITUAN = 1;
    const DOUBLE_WAIMAI_ELEME = 2;

    const DOUBLE_WAIMAI = [
        self::DOUBLE_WAIMAI_MEITUAN => '美团',
        self::DOUBLE_WAIMAI_ELEME => '饿了么',
    ];

    /**
     * 门面类型
     */

    const SHOP_FACED_TYPE_INDEPENDENT  = 1;
    const SHOP_FACED_TYPE_SEGMENTATION = 2;
    const SHOP_FACED_TYPE_CANTEEN      = 3;
    const SHOP_FACED_TYPE_MALL         = 4;
    const SHOP_FACED_TYPE_OTHER        = 5;

    const SHOP_FACED_TYPE = [
        self::SHOP_FACED_TYPE_INDEPENDENT  => '独立门面',
        self::SHOP_FACED_TYPE_SEGMENTATION => '分割门面',
        self::SHOP_FACED_TYPE_CANTEEN      => '食堂/美食城档口',
        self::SHOP_FACED_TYPE_MALL         => '商超档口',
        self::SHOP_FACED_TYPE_OTHER        => '其他',
    ];




}
